/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.Test;

import com.View.Menggambar;
import com.View.ShapePanel;
import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;

/**
 *
 * @author admin
 */
public class TestMenggambar {
    public static void main(String args[]) {
        JFrame frame = new JFrame("Grafik 2 Dimensi");
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
        frame.setLayout(new BorderLayout());
        Menggambar gambar = new Menggambar();
        frame.add(gambar,BorderLayout.CENTER);
        frame.setSize(450, 250);
        frame.setVisible(true);
    }
}
